<extend name="Base/common"/>
<block name="header">
    <include file="Public/_nav"/>
    <link type="text/css" rel="stylesheet" href="__CSS__/wckc.css">
    <!-- <script type="text/javascript" src="__JS__/common.js"></script> -->
</block>


<block name="body">

      <!--   <include file="Public/_hot_sell"/> -->
        <!-- 左侧菜start -->
        <div class="col-xs-2">            
          <include file="Public/sidebar"  />
        </div>
        <!-- 左侧菜end -->
  <!--内容栏start-->
  <div class="col-md-10 content"> 
  <!--内容栏start-->
       <ul class="nav nav-tabs">
           <li class="active"><a href="#"><i class="icon icon-th-large"> </i>五彩课程管理</a></li>
           <li><a href="{:U('Index/xbDocFiles')}"><i class="icon icon-th-large"> </i>课程资料库</a></li>
           <li><a href="{:U('Student/classscore')}"><i class="icon icon-th-large"> </i>学生成绩</a></li>
           <li><a href="{:U('Index/exportCourseExcel')}"><i class="icon icon-th-large"> </i>导出各类表格</a></li>
       </ul>
       <div class="row">
       
         <div class="col-md-12">
         <h1 class="text-center" style="color:#CC4444">源自不同兴趣，成就不同精彩 </h1>
         </div>
         <div class="col-md-5">
              <a class="btn btn-success" href="{:U('Export/exportAllcourseInfo')}" >导出课程信息</a>
              <a class="btn btn-info" href="{:U('Index/updateCount')}" >更新学生人数</a>
              <a class="btn btn-info" href="{:U('My/addCourse')}">新 增 课 程</a>
          </div>
        </div>
        
        <div class="clearfix"></div>
        
   

    <!-- Table start -->     
        <table class="table table-striped table-bordered" width="100%">
        <thead>
        <tr class="info">
            <th class="text-center">序号</th><th class="text-center">类别</th><th class="text-center">名称</th><th class="text-center">任课教师</th><th class="text-center">面向年级</th><th class="text-center">预期人数</th><th class="text-center">实报人数</th><th class="text-center">剩余</th><th class="text-center">场地</th><th class="text-center">操作</th>
        </tr>
        </thead>
        <volist name="_curriculum" id="cur" >
        <tr>
            <td>{$i}</td>
            <td>{$cur.category}</td>
            <td>{$cur.cname}</td>
            <td>{$cur.teacher}</td>
            <td>{$cur.grade}</td><td>{$cur.number}</td>
            <td>{$cur.count}</td>
            <td>{$cur.shengyu}</td>
            <td>{$cur.room}</td><td>
            <a href= "{:U('My/upload?cid='.$cur['cid'])}" >上传资料</a>｜
            <a href= "{:U('Index/showCurriculum?cid='.$cur['cid'])}" >查看</a>｜
            <a href="{:U('Index/edit?cid='.$cur['cid'])}" >编辑</a>｜
            <a href="{:U('My/student?cid='.$cur['cid'])}" >学生</a></td>
            </tr>
        </volist>
        </table>
      <!--/Table-->

</block>